'use strict';

module.exports = {
  async up (queryInterface, Sequelize) {
    await queryInterface.addColumn('punch_plans', 'punched_count', {
      type: Sequelize.INTEGER,
      allowNull: false,
      defaultValue: 0,
      comment: '已打卡次数'
    });
  },

  async down (queryInterface, Sequelize) {
    await queryInterface.removeColumn('punch_plans', 'punched_count');
  }
};
